/**
 * controller: division
 *
 * @author    Dmitry Ustimov
 * @date      March 2012
 *
 */
package com.gr

import grails.converters.JSON

class DivisionController {	
	def DivisionService

	def getlist = {
		render DivisionService.getlist() as JSON	
	}
	
	def getElement = {
		render DivisionService.getElement(params) as JSON
	}
	
	def getlistAll = {
		render DivisionService.getlistAll() as JSON
	}
	
	def addElement = {
		render DivisionService.addElement(params) as JSON
	}
	
	def editElement = {
		render DivisionService.editElement(params) as JSON
	}
	
	def deleteElement = {
		render DivisionService.deleteElement(params) as JSON
	}
}
